class Resource
{
	std::fstream *f;
	int valid;
	void init();
public:
	Resource();
	Resource(const Resource *other);
	Resource(std::fstream *filestream);
	Resource(const char *filename);
	Resource(const wchar_t *filename);

	int GetStream(std::fstream **out);
	int Valid();
};
